Mental Representation and Imagery in Program Comprehension
نویسندگان
چکیده
This paper studies the role of imagery in program comprehension. With this goal we investigated whether theories of mental models from Psychology of Programming (e.g., Pennington’s Two Stages Theory) could be expanded to account for the effect of imagery. Given the basic research in image processing, our hypothesis is that imagery would allow a quicker access to the functional (Data Flow) information of programs. Then, Visual Programming Languages should allow for quicker construction of a mental representation based on Data Flow relationships of a program than procedural languages. To test this hypothesis we ran an experiment where we accessed the mental model of C and spreadsheet programmers in different program comprehension situations. The results showed evidence that the spreadsheet programmers developed Data Flow based mental representations in all situations while C programmers seemed to access to a Control Flow based mental representation first.
منابع مشابه
Are visual programming languages better? The role of imagery in program comprehension
This paper presents one experiment to explain why and under which circumstances visual programming languages would be easier to understand than textual programming languages. Towards this goal we bring together research from psychology of programming and image processing. According to current theories of imagery processing imagery facilitates a quicker access to semantic information. Thus, visu...
متن کاملReading Pictures for Story Comprehension Requires Mental Imagery Skills
We examined the role of mental imagery skills on story comprehension in 150 fifth graders (10- to 12-year-olds), when reading a narrative book chapter with alternating words and pictures (i.e., text blocks were alternated by one- or two-page picture spreads). A parallel group design was used, in which we compared our experimental book version, in which pictures were used to replace parts of the...
متن کاملProgram Visualization: Comparing Eye-Tracking Patterns with Comprehension Summaries and Performance
We present preliminary results of an experiment in computer program comprehension that was conducted to find out whether visual strategies can characterize lowand high-comprehenders. In addition, we investigated whether the type and quality of externalized mental models can be associated with the visual strategies. Participants of various levels of experience used a program visualization tool, ...
متن کاملWhat brain imaging can tell us about embodied meaning
Brain imaging studies of language processing (using fMRI) can indicate under what circumstances the embodied aspects of language representations become activated. In particular, the processing of language is distributed across a number of cortical centers, including not only classic language areas in association cortex (which might be involved in symbolic processing) , but also sensory and moto...
متن کاملDependency Propagation: A Unified Theory of Sentence Comprehension and Generation
The possibility is pursued that a single mental program underlies both sentence comprehension and generation. The Horn-logic formalism is exploited here to modelize the mental representation of the linguistic knowledge, as a bundle of constraints rather than as a patchwork of procedures. A notion of dependency in a Horn program is defined so that eliminating dependency amounts to solving the pr...
متن کامل